package com.zzf.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzf.common.dto.SeckillOrderDTO;
import com.zzf.common.exception.NoStockExecption;
import com.zzf.common.utils.PageUtils;
import com.zzf.mall.order.entity.OrderEntity;
import com.zzf.mall.order.vo.OrderConfirmVO;
import com.zzf.mall.order.vo.OrderResponseVO;
import com.zzf.mall.order.vo.OrderSubmitVO;
import com.zzf.mall.order.vo.PayVO;

import java.util.Map;

/**
 * 订单
 *
 * @author èµµæ¯é£
 * @email 827070658@qq.com
 * @date 2022-08-14 15:51:30
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVO confirmOrder();

    OrderResponseVO submitOrder(OrderSubmitVO vo) throws NoStockExecption;

    PayVO getOrderPay(String orderSn);

    void updateOrderStatus(String orderSn,Integer status);

    void handleOrderComplete(String orderSn);

    void quickCreateOrder(SeckillOrderDTO orderDto);
}

